<template>
  <el-card class="card-box">
    <div class="left">
      <div v-if="$slots.left" class="tips">
        <slot name="left" />
      </div>
    </div>
    <div v-if="$slots.right" class="right">
      <slot name="right" />
    </div>
  </el-card>
</template>

<script>
export default {
  mounted() {
    console.log(this.$slots.left)
  }
}
</script>

<style lang="scss" scoped>
.card-box {
  ::v-deep.el-card__body{
     display: flex;
     justify-content: space-between;
  }
  .left {
    .tips{
      border: 1px solid #000;
    }
  }

}
</style>
